@import './custom.less';

@content0: content0;
.rowFlex{
  display: flex;
  flex-direction: row;
  justify-content: center;
}

:global{
.@{content0} {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  &-wrapper{
    height: 95vh;
  }

  &-text {
    display:flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    height: 20vh;
    position: relative;
    top: 0;
    bottom: 0;
    margin: auto;
    opacity: 1;
    right: 0;
    & p, & h1 {
      position: relative !important;
      width: 100%;
      .rowFlex;
    }
    & h1 {
      font-size: 32px;
      font-weight: normal;
      color: #404040;
    }
    & p {
      margin-top: 20px;
    }
  }
  &-grid {
      position: relative !important;
      width: 100%;
      height: 75vh;
      display: flex;
      flex-direction: row;
      justify-content: center;

  }
}

  /* 图片 */
  .content0-image-wrapper {
    position: relative;
    list-style: none;
    width: 1000px;
    height: 580px;
    display: flex;
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
  }
  .content0-image-wrapper li {
    width: 220px;
    height: 152px;
    position: absolute;
  }

  .content0-image-box-shadow {
    box-shadow: 0 0 0 rgba(140, 140, 140, 0);
    height: 100%;
    transition: box-shadow .3s;
  }

  .content0-image-wrapper li.open .content0-image-box-shadow {
    box-shadow: 0 2px 8px rgba(140, 140, 140, 50);
  }

  .content0-image-wrapper li a {
    width: 220px;
    z-index: 1;
    display: inline-block;
    position: absolute;
  }

  .content0-image-wrapper li a, .content0-image-wrapper li a img {
    display: block;
  }

  .content0-text-wrapper {
    width: 50%;
    background: #fff;
    padding: 20px 30px;
    height: 350px;
    vertical-align: top;
    display: inline-block;
    position: absolute;
  }

  .content0-text-wrapper h1 {
    font-size: 18px;
    margin: 10px auto;
  }

  .content0-text-wrapper i {
    position: absolute;
    top: 20px;
    right: 20px;
    cursor: pointer;
  }

  .content0-text-wrapper em {
    height: 4px;
    width: 120px;
    background: #FA1F4E;
    border-radius: 4px;
    display: block;
  }

  .content0-text-wrapper p {
    font-size: 12px;
    margin-top: 20px;
    line-height: 16px;
  }
  @media screen and (max-width: 414px) {
    .content0{
      transform: scale(.65) translateX(12px);
      transform-origin: left center;
    }
  }
  @media screen and (max-width: 375px) {
    .content0{
      transform: scale(.6) translateX(7px);
    }
  }
  @media screen and (max-width: 320px) {
    .content0{
      transform: scale(.5) translateX(12px);
    }
  }



@media screen and (max-width: 767px) {
  .@{content0}-wrapper {
    height: 400px;
    .@{content0} {
      overflow: hidden;
      width: 90%;
      margin: auto;
      &-img, &-text {
        width: 100%;
        display: block;
        position: relative;
        text-align: center;
      }
      &-img {
        height: 200px;
        margin: 20px auto;
        span {
          right: 0;
          left: 0;
          margin: auto;
          width: 180px;
          height: 200px;
          line-height: 200px;
        }
      }
      &-text {
        height: 140px;
        margin-bottom: 20px;
        p, h1 {
          width: 100%;
          top: auto;
        }
        h1{
          margin: 10px auto;
          font-size: 24px;
        }
      }
    }
  }
}}
